x86: maintain COS to CBM mapping for each socket
authorChao Peng <chao.p.peng@linux.intel.com>
Tue, 7 Jul 2015 13:44:24 +0000 (15:44 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Jul 2015 13:44:24 +0000 (15:44 +0200)
commit39a24082b81c5eefbdcf98b4f78b96685664d56e
tree75165f6cf6449b93452dfdf33712272158b08e26
parent65a399acae1ae3065346f93717443676564bb2e5
x86: maintain COS to CBM mapping for each socket

For each socket, a COS to CBM mapping structure is maintained for each
COS. The mapping is indexed by COS and the value is the corresponding
CBM. Different VMs may use the same CBM, a reference count is used to
indicate if the CBM is available.

Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/psr.c